# LocsiCFG
#
# ToDo:
#   1. Insert YOUR private keys and ids below ( client_id .. developerKey )
#   2. Save this file as LocsiCFG.py
#

#--------------------------------------------------------
#
# Google developer key and client identification keys
#
#--------------------------------------------------------

client_id='107900416758-i3bkdlp7iofu8vsj02gh665la8reh6kj.apps.googleusercontent.com'
client_secret='nfooUYdKIli9OURVK3LuGzKF'
scope='https://www.googleapis.com/auth/calendar'
user_agent='Spriccni/0.1'
developerKey='AIzaSyCEOfjd4L3ZHG44iw8xs0pZD1cYTnAR3Kk'

# Google Calendar API v3 Resource representations and interfacing functions

#--------------------------------
#
# RESOURCE REPRESENTATIONS
#
#--------------------------------
# temporary variables denoting property types in google apps calendar api's events resource definition
etag = 'etag'
string = 'string'
boolean = 'boolean'
date = 'date'
datetime = 'datetime'
integer = 'integer'
key = 'key'

# EVENTS resource representation from google reference for Google Calendar API v3
events_resource = {
  "kind": "calendar#event",
  "etag": etag,
  "id": string,
  "status": string,
  "htmlLink": string,
  "created": datetime,
  "updated": datetime,
  "summary": string,
  "description": string,
  "location": string,
  "colorId": string,
  "creator": {
    "id": string,
    "email": string,
    "displayName": string,
    "self": boolean
  },
  "organizer": {
    "id": string,
    "email": string,
    "displayName": string,
    "self": boolean
  },
  "start": {
    "date": date,
    "dateTime": datetime,
    "timeZone": string
  },
  "end": {
    "date": date,
    "dateTime": datetime,
    "timeZone": string
  },
  "endTimeUnspecified": boolean,
  "recurrence": [
    string
  ],
  "recurringEventId": string,
  "originalStartTime": {
    "date": date,
    "dateTime": datetime,
    "timeZone": string
  },
  "transparency": string,
  "visibility": string,
  "iCalUID": string,
  "sequence": integer,
  "attendees": [
    {
      "id": string,
      "email": string,
      "displayName": string,
      "organizer": boolean,
      "self": boolean,
      "resource": boolean,
      "optional": boolean,
      "responseStatus": string,
      "comment": string,
      "additionalGuests": integer
    }
  ],
  "attendeesOmitted": boolean,
  "extendedProperties": {
    "private": {
      (key): string
    },
    "shared": {
      (key): string
    }
  },
  "hangoutLink": string,
  "gadget": {
    "type": string,
    "title": string,
    "link": string,
    "iconLink": string,
    "width": integer,
    "height": integer,
    "display": string,
    "preferences": {
      (key): string
    }
  },
  "anyoneCanAddSelf": boolean,
  "guestsCanInviteOthers": boolean,
  "guestsCanModify": boolean,
  "guestsCanSeeOtherGuests": boolean,
  "privateCopy": boolean,
  "locked": boolean,
  "reminders": {
    "useDefault": boolean,
    "overrides": [
      {
        "method": string,
        "minutes": integer
      }
    ]
  }
}

# deleting temporary variables denoting property types in google apps calendar api's events resource definition
del etag
del string
del boolean
del date
del datetime
del integer
del key
